x86/hvm: add check when register io handler
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Wed, 8 Jun 2016 12:13:59 +0000 (14:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jun 2016 12:13:59 +0000 (14:13 +0200)
commitaefa50645cad7982f8b2b1ab33995cafe32787b2
tree4169c64e4c1ceaf2071aee077da3e046d570fd1b
parenteb4858721050ff56f3add7ab67e9ea9332b459f7
x86/hvm: add check when register io handler

At the time of registering HVM I/O handler, the HVM domain might
not have been initialized, which means the hvm_domain.io_handler
would be NULL. In the hvm_next_io_handler(), this should be asserted.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/intercept.c